package com.sl.au.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.ExdeDutyArea;
import com.sl.au.entity.SaleArea;
import com.sl.au.entity.User;
import com.sl.au.repository.ExdeInsideConfigurationRepository;
import com.sl.au.service.ExdeInsideConfigurationService;

@Service("ExdeInsideConfigurationService")
@Transactional
public class ExdeInsideConfigurationServiceImpl implements ExdeInsideConfigurationService {
	
	@Autowired
	ExdeInsideConfigurationRepository exdeInsideConfigurationRepository;

	@Override
	public ExdeInsideConfigurationRepository getexdeInsideConfigurationRepository() {
		return this.exdeInsideConfigurationRepository;
	}

	@Override
	public List<User> getAllUserList(String superior) {
		return this.exdeInsideConfigurationRepository.getAllUserList(superior);
	}

	@Override
	public List<SaleArea> getAllSaleAreaList(String superior) {
		return this.exdeInsideConfigurationRepository.getAllSaleAreaList(superior);
	}

	@Override
	public List<ExdeDutyArea> getAllExdeDutyAreaList(String superior) {
		return this.exdeInsideConfigurationRepository.getAllExdeDutyAreaList(superior);
	}

	@Override
	public List<ExdeDutyArea> getExdeDutyAreaList(String key, String superior) {
		return this.exdeInsideConfigurationRepository.getExdeDutyAreaList(key, superior);
	}

	@Override
	public void deleteExdeDutyAreaById(String id) {
		exdeInsideConfigurationRepository.deleteExdeDutyAreaById(id);
		
	}
	
	

}
